import React from "react";
import { NavLink, Outlet } from "react-router-dom";

export default function News() {
	return (
		<div>
			<div>
				<span>
					<NavLink to="/news/guonei">国内新闻</NavLink>
				</span>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<span>
					<NavLink to="/news/junshi">军事新闻</NavLink>
				</span>
			</div>

			{/* //对子路由对应的组件进行占位 */}
			<Outlet></Outlet>
		</div>
	);
}
